/*
 * Copyright (c) 2012 Google Inc.
 *
 * All rights reserved. This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at
 *
 * http://www.eclipse.org/legal/epl-v10.html
 */
package com.google.eclipse.xtext.filename.ui;

import static com.google.eclipse.xtext.filename.ui.XtextSetup.configureXtextToWorkWithFileNames;

import org.eclipse.ui.plugin.AbstractUIPlugin;

/**
 * Registry of components to be used within the IDE. Originally generated by Xtext.
 *
 * @author alruiz@google.com (Alex Ruiz)
 */
public class MyDslUiModule extends AbstractMyDslUiModule {

  public MyDslUiModule(AbstractUIPlugin plugin) {
    super(plugin);
    // In Xtext 2.2, the plug-in's Injector is no longer available at this point. We need to obtain
    // it just before using it (via a InjectorProvider.)
    configureXtextToWorkWithFileNames(new InjectorProvider());
  }
}
